package models.dummy;

import java.util.Collection;

import core.environment.fVector;

public class Dummy {
	
	public Dummy(Integer i) {
		System.out.println("Constructing user: " + i);
	}
	public Integer instanceSingleArg(Integer value) {
		return staticSingleArg(value);
	}
	
	public Integer instanceMultArgs(Integer value1, Integer value2) {
		return staticMultArgs(value1, value2);
	}

	public Object instanceCollection(fVector col) {
		return staticCollection(col);
	}
	
	
	public static Integer staticSingleArg(Integer value) {
		System.out.println(value);
		return value;
	}
	
	public static Integer staticMultArgs(Integer value1, Integer value2) {
		System.out.println("[" + value1 + "," + value2 + "]" );
		return value1;
	}
	
	public static Object staticCollection(fVector col) {
		System.out.print("{" );
		for (Object o : col) {
			System.out.print( o + ","  );
		}
		System.out.println( "}" );
		
		return col.iterator().next();
	}
}
